<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>添加用户</title>
</head>
<body>
<sf:form method="post" modelAttribute="user" enctype="multipart/form-data">
    UserName:<sf:input path="username"/> <sf:errors path="username"/><br/>
    NickName:<sf:input path="nickname"/><sf:errors path="nickname"/> <br/>
    PassWord:<sf:password path="password"/><sf:errors path="password"/> <br/>
    file:<input type="file" name="attfile">
    <input type="submit" value="添加用户"><br/>
</sf:form>
</body>
</html>
